// 商品数据
export const product_data = [
  {
    id: 1,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/kleppstad-ke-le-pu-si-ta-san-men-yi-gui-bai-se__0753594_pe748782_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/kleppstad-ke-le-pu-si-ta-san-men-yi-gui-bai-se__1276202_ph170507_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/kleppstad-ke-le-pu-si-ta-san-men-yi-gui-bai-se__0813670_ph165843_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/kleppstad-ke-le-pu-si-ta-shuang-men-yi-gui-bai-se__0733321_pe748778_s5.jpg"],
    video: ["https://video.app.ikea.cn/e5e38a03099f4b7699cf81aa9ba4fd3b/47b0c89e8ed8477baddc5874175aef4f-8fb43a7eebc4715e27d13a92ec9bed96-ld.mp4?auth_key=1712158445-308a271b356e469d9fa3c8be6604b1fa-0-cfaf947c2bc0bd480aca0e39372d8a1a"],
    name: "KLEPPSTAD 克勒普斯塔",
    class: "衣柜",
    scenario: "卧室",
    explain: "衣柜组合，米白色",
    deatail: "精巧简约！如果你只想要一个基本功能齐全的衣柜，这款就不错。若储物空间仍不够用，不妨再添置一款 KLEPPSTAD 克勒普斯塔 系列衣柜。",
    price: 799.00
  },
  {
    id: 2,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/elvarli-ai-er-wa-li-yi-gui-zu-he-bai-se__1288026_pe934069_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/elvarli-ai-er-wa-li-yi-gui-zu-he-bai-se__1288027_pe934071_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/elvarli-ai-er-wa-li-yi-gui-zu-he-bai-se__1288028_pe934070_s5.jpg"],
    video: null,
    name: "ELVARLI 爱尔瓦丽",
    class: "衣柜",
    scenario: "卧室",
    explain: "衣柜组合，白色，205x55x216 厘米",
    deatail: "ELVARLI 爱尔瓦丽 储物系列可灵活适应你的空间。它采用开放式设计，搭配经久耐用的竹制搁板，用来展示物品效果很棒。注意，请将其固定在墙上。",
    price: 3760.00
  },
  {
    id: 3,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/pax-pa-ke-si-hasvik-ha-si-wei-yi-gui-mi-hui-se-mi-hui-se__1119875_pe873637_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/pax-pa-ke-si-hasvik-ha-si-wei-yi-gui-mi-hui-se-mi-hui-se__1184483_pe897916_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/pax-pa-ke-si-hasvik-ha-si-wei-yi-gui-mi-hui-se-mi-hui-se__1182204_pe897083_s5.jpg"],
    video: null,
    name: "PAX 帕克思 / HASVIK 哈斯维",
    class: "衣柜",
    scenario: "卧室",
    explain: "衣柜，米灰色/米灰色，200x66x236 厘米",
    deatail: "简单点就好。这款基础式衣柜能帮助你打造自己的理想衣柜，并为衣柜升级留出可放置更多内配件的空间。",
    price: 3688.00
  },
  {
    id: 4,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/vuku-wu-ku-yi-gui-bai-se__1289700_ph196296_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/vuku-wu-ku-yi-gui-bai-se__0498088_pe629449_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/vuku-wu-ku-yi-gui-bai-se__0498108_pe629461_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/vuku-wu-ku-yi-gui-bai-se__1085442_pe860107_s5.jpg"],
    video: null,
    name: "VUKU 乌库",
    class: "衣柜",
    scenario: "卧室",
    explain: "衣柜，白色，74x51x149 厘米",
    deatail: "我们从帐篷的设计上汲取灵感，与帐篷供应商携手，设计开发了这款衣柜。它适合存放应季衣服，也方便在需要时随身携带。卷起来就可以带走了，十分方便。",
    price: 3688.00
  },
  // {
  //   id: 5,
  //   img: ["https://asset-prod.aidesign.ingka-internal.cn/image/template/8486937_30.png", "https://asset-prod.aidesign.ingka-internal.cn/image/template/8486937_31.png", "https://asset-prod.aidesign.ingka-internal.cn/image/template/8486937_32.png"],
  //   video: null,
  //   name: "PAX 帕克思",
  //   class: "衣柜",
  //   scenario: "卧室",
  //   explain: "衣柜，白色，300x60x236 厘米",
  //   deatail: "这组衣柜组合不仅外观精美，而且内部设计巧妙。保证可搭配使用多年。",
  //   price: 0.00
  // },
  {
    id: 6,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/landskrona-lan-de-ke-na-san-ren-sha-fa-ge-lan-bang-si-ta-jin-zong-jin-shu__0602109_pe680178_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/landskrona-lan-de-ke-na-san-ren-sha-fa-ge-lan-bang-si-ta-jin-zong-jin-shu__0825420_pe680179_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/landskrona-lan-de-ke-na-san-ren-sha-fa-ge-lan-bang-si-ta-jin-zong-jin-shu__0813406_ph166310_s5.jpg"],
    video: ["https://video.app.ikea.cn/a0adada092eb71ed91420764a3fd0102/e56af3d9db42420a8dbdb6197956f2e0-bac363baa01ee5e6431830dbf00d77e4-ld.mp4?auth_key=1712160579-8e96ab8d2115470596efd353b3cac5d6-0-6cc75167283fe17ac8bbdb81d0862826"],
    name: "LANDSKRONA 兰德克纳",
    class: "沙发",
    scenario: "客厅",
    explain: "三人沙发，哥兰/邦斯塔 金棕/金属",
    deatail: "为你带来奢华享受。我们采用高弹海绵填料保证舒适度，接触面采用头层牛皮，确保美观，其他地方则采用耐磨的人造革，降低成本。",
    price: 5998.00
  },
  {
    id: 7,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/naemmaroe-nai-ma-rui-3-ren-zhuan-jiao-sha-fa-hu-wai-chan-pin-zhao-qian-he-se-qi-fu-luo-song-du-huo-meng-mi-huang-se__1213447_pe911141_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/naemmaroe-nai-ma-rui-3-ren-zhuan-jiao-sha-fa-hu-wai-chan-pin-zhao-qian-he-se-qi-fu-luo-song-du-huo-meng-mi-huang-se__1349965_ph196504_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/naemmaroe-nai-ma-rui-3-ren-zhuan-jiao-sha-fa-hu-wai-chan-pin-zhao-qian-he-se-qi-fu-luo-song-du-huo-meng-mi-huang-se__1349962_ph196506_s5.jpg"],
    video: null,
    name: "NÄMMARÖ 耐玛瑞",
    class: "沙发",
    scenario: "客厅",
    explain: "3人转角沙发，户外产品 着浅褐色漆/弗洛松／杜霍蒙 米黄色",
    deatail: "使用NÄMMARÖ 耐玛瑞 系列打造舒适的户外“客厅”。无论是用于阳台、露台或花园，该系列能满足你享受休闲时光、惬意晚餐和欢乐的夏日派对所需的一切。",
    price: 4268.00
  },
  {
    id: 8,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/lack-la-ke-cha-ji-bai-se__0702218_pe724350_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/lack-la-ke-cha-ji-bai-se__0702217_pe724349_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/lack-la-ke-cha-ji-bai-se__0836361_pe601397_s5.jpg"],
    video: ["https://video.app.ikea.cn/4ea9c6ab982b40bc9b1b66b121fd7d2e/e30bf1c4441e43e3a38718e4288fc9d9-d5a993742512ab52ca3be22433c0d4e1-ld.mp4?auth_key=1712161707-c45e5d0266a44b5fad8b227e1d8652c1-0-f44f9f734253ec58cd62ff0aeee48e39"],
    name: "LACK 拉克",
    class: "茶几",
    scenario: "客厅",
    explain: "茶几，白色，90x55 厘米",
    deatail: "这张白色的LACK 拉克 桌子非常百搭，可出色融入不同家居风格。采用独特结构设计，易于组装或搬运；而且价格实惠，不用担心预算超支。",
    price: 148.00
  },
  {
    id: 9,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/lunnarp-lu-na-pu-cha-ji-he-se__0593613_pe675310_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/lunnarp-lu-na-pu-cha-ji-he-se__0836846_pe675311_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/lunnarp-lu-na-pu-cha-ji-he-se__0836842_pe675309_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/lunnarp-lu-na-pu-cha-ji-he-se__0664926_pe712919_s5.jpg"],
    video: null,
    name: "LUNNARP 鲁纳普",
    class: "茶几",
    scenario: "客厅",
    explain: "茶几，褐色，90x55 厘米",
    deatail: "LUNNARP 鲁纳普 茶几稳固结实，桌面下方有实用储物空间。如果你希望在沙发上休息时把杂志、遥控器和平板电脑放在手边，那它会是你的理想之选。",
    price: 259.00
  },
  {
    id: 10,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/skruvby-si-ku-bi-dian-shi-gui-bai-se__1128171_pe876450_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/skruvby-si-ku-bi-dian-shi-gui-bai-se__1142039_pe881129_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/skruvby-si-ku-bi-dian-shi-gui-bai-se__1142038_pe881131_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/skruvby-si-ku-bi-dian-shi-gui-bai-se__1142030_pe881124_s5.jpg"],
    video: null,
    name: "SKRUVBY 斯库比",
    class: "电视柜",
    scenario: "客厅",
    explain: "电视柜，白色，156x38x60 厘米",
    deatail: "SKRUVBY 斯库比 系列具有传统外观，可提供独立的储物单元，便于灵活搭配。这款电视柜的顶板具有橡木质感和塑形边缘，可为房间增添温馨自然氛围。",
    price: 368.00
  },
  {
    id: 11,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/utespelare-wu-si-pei-helmer-hai-er-mo-zhuo-zi-yi-zi-he-chou-ti-dan-yuan-hei-se__1004842_pe825226_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/utespelare-wu-si-pei-helmer-hai-er-mo-zhuo-zi-yi-zi-he-chou-ti-dan-yuan-hei-se__1007052_pe825949_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/utespelare-wu-si-pei-helmer-hai-er-mo-zhuo-zi-yi-zi-he-chou-ti-dan-yuan-hei-se__0997874_pe822843_s5.jpg"],
    video: ["https://video.app.ikea.cn/9fd04fe4619844c4a4957b9e6fccbc2b/f9874314b8ea4c7a8031a1454870dfe4-5bb44fc08bdeaa4e381ac2919e6266cb-ld.mp4?auth_key=1712160984-2bdc6ce9dba94b798f6e58771b6f2f2d-0-e875b636111960d0a81f3c45c75039c4"],
    name: "UTESPELARE 乌斯佩 / HELMER 海尔默",
    class: "书桌",
    scenario: "书房",
    explain: "桌子、椅子和抽屉单元，黑色",
    deatail: "耐用稳定，放心使用",
    price: 1688.00
  },
  {
    id: 12,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/idasen-yi-duo-sen-zuo-zhan-liang-yong-shi-ban-gong-zhuo-he-se-shen-hui-se__0734937_pe739671_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/idasen-yi-duo-sen-zuo-zhan-liang-yong-shi-ban-gong-zhuo-he-se-shen-hui-se__0855435_pe733228_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/idasen-yi-duo-sen-zuo-zhan-liang-yong-shi-ban-gong-zhuo-he-se-shen-hui-se__0855431_pe733227_s5.jpg"],
    video: null,
    name: "IDÅSEN 伊朵森",
    class: "书桌",
    scenario: "书房",
    explain: "坐/站两用式办公桌，褐色/深灰色，120x70 厘米",
    deatail: "这款书桌结实稳固，可以使用多年，倒上一杯咖啡，在这里奋力工作，再惬意不过。它将为你提供宽敞的工作空间，同时还可以巧妙地把线缆收纳在下方。",
    price: 4688.00
  },
  {
    id: 13,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/knoxhult-nuo-ke-hu-chu-fang-bai-se__0742793_pe742815_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/knoxhult-nuo-ke-hu-chu-fang-bai-se__0485283_pe621465_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/knoxhult-nuo-ke-hu-chu-fang-bai-se__0778693_pe759074_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/knoxhult-nuo-ke-hu-chu-fang-bai-se__0791092_pe764500_s5.jpg"],
    video: null,
    name: "KNOXHULT 诺克胡",
    class: "橱柜",
    scenario: "厨房",
    explain: "厨房，白色，200x61 厘米",
    deatail: "适用于打造包含便携式炉灶和宽敞储物空间的中型厨房。我们提供现成的模块组合，从购买到使用，都十分方便快捷。",
    price: 2488.00
  },
  {
    id: 14,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/ragrund-luo-ge-lang-zuo-yi-fu-mao-jin-jia-zhu__0380915_pe555778_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/ragrund-luo-ge-lang-zuo-yi-fu-mao-jin-jia-zhu__0739453_pe741743_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/ragrund-luo-ge-lang-zuo-yi-fu-mao-jin-jia-zhu__1062280_pe850747_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/ragrund-luo-ge-lang-zuo-yi-fu-mao-jin-jia-zhu__0283252_pe376057_s5.jpg"],
    video: null,
    name: "RÅGRUND 罗格朗",
    class: "椅子",
    scenario: "浴室",
    explain: "坐椅附毛巾架，竹",
    deatail: "既是座位，又是搁板和毛巾架，三种功能巧妙融为一体，有效节省空间。RÅGRUND 罗格朗 浴室用品系列由竹子制成，非常适合浴室等潮湿区域使用。",
    price: 166.00
  },
  {
    id: 15,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/stockholm-si-de-ge-er-mo-yi-zi-hu-tao-mu-wen__0753719_pe747693_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/stockholm-si-de-ge-er-mo-yi-zi-hu-tao-mu-wen__0756826_pe749078_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/stockholm-si-de-ge-er-mo-yi-zi-hu-tao-mu-wen__0756824_pe749077_s5.jpg"],
    video: null,
    name: "STOCKHOLM 斯德哥尔摩",
    class: "椅子",
    scenario: "餐厅",
    explain: "椅子，胡桃木纹",
    deatail: "STOCKHOLM 斯德哥尔摩 系列的每一件产品均是对斯堪的纳维亚设计的致敬。这款稳固的椅子也不例外。木质材料的自然变化赋予每张椅子独特的外观。",
    price: 188.00
  },
  {
    id: 16,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/sotenaes-suo-te-na-si-fu-shou-yi-ha-ke-bo-huang-se__1262234_pe926999_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/sotenaes-suo-te-na-si-fu-shou-yi-ha-ke-bo-huang-se__1272609_ph195671_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/sotenaes-suo-te-na-si-fu-shou-yi-ha-ke-bo-huang-se__1262232_pe926998_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/sotenaes-suo-te-na-si-fu-shou-yi-ha-ke-bo-huang-se__1262233_pe927000_s5.jpg"],
    video: null,
    name: "SOTENÄS 索特纳斯",
    class: "椅子",
    scenario: "卧室",
    explain: "扶手椅，哈克波 黄色",
    deatail: "一款充满朝气并洋溢着节日氛围的扶手椅。 这正是1969年宜家《家居指南》中关于PUCK 扶手椅的描述。 这款产品现在Nytillverkad 霓特浮德 系列中以SOTENÄS 索特纳斯 的名称重新推出，但仍然沿用了Gillis Lundgren的设计。",
    price: 666.00
  },
  {
    id: 17,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/malm-ma-er-mu-gao-chuang-jia-bai-se-xiang-mu-tie-mian-lu-rui__0637598_pe698416_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/malm-ma-er-mu-gao-chuang-jia-bai-se-xiang-mu-tie-mian-lu-rui__1101531_pe866710_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/malm-ma-er-mu-gao-chuang-jia-bai-se-xiang-mu-tie-mian-lu-rui__0734386_pe739457_s5.jpg"],
    video: ["https://video.app.ikea.cn/1a00c6d0c91871ed81c37035d0b20102/95c436cd9f6445e6a3b8cc9fd5096092-d1d15ed218b3b3de2c5ec265d2d3ea0d-ld.mp4?auth_key=1712163484-6e12198600ff487fb4a9f2df2736a202-0-fdb5b2b6bfc639d1257f918aba5b4c14"],
    name: "MALM 马尔姆",
    class: "床架",
    scenario: "卧室",
    explain: "高床架，白色橡木贴面/鲁瑞，150x200 厘米",
    deatail: "设计简洁，实木贴面。可单独使用，或搭配床头板使用。如需存放备用床上用品，还可配备带脚轮的 MALM 马尔姆 床用储物盒。",
    price: 1699.00
  },
  {
    id: 18,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/idanaes-yi-da-nai-ruan-bao-chuang-jia-gao-xiang-qi-ya-chuang-gang-na-rui-de-shen-hui-se__1012430_pe829086_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/idanaes-yi-da-nai-ruan-bao-chuang-jia-gao-xiang-qi-ya-chuang-gang-na-rui-de-shen-hui-se__1079002_pe857426_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/idanaes-yi-da-nai-ruan-bao-chuang-jia-gao-xiang-qi-ya-chuang-gang-na-rui-de-shen-hui-se__1079014_pe857431_s5.jpg"],
    video: ["https://video.app.ikea.cn/8f0276c671ef4d118daa452725f96e15/b52c2d6a1e154ec1bce3dd25576766fb-f37cadf4fdf61efb2b06f143552c51c2-ld.mp4?auth_key=1712162276-27b94fe446c1490392635e81204b74ff-0-9e6e12c6ba1e083021f9ace59f14cd2a"],
    name: "IDANÄS 宜达奈",
    class: "床架",
    scenario: "卧室",
    explain: "软包床架高箱气压床，刚纳瑞德 深灰色，150x200 厘米",
    deatail: "IDANÄS 宜达奈 软包高箱气压床带倾斜床头板和软垫层，格外舒适。经典纽扣细节永不过时，而床下又增加了丰富的储物空间。",
    price: 4699.00
  },
  {
    id: 19,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/mackapaer-ma-kai-pa-xie-gui-chu-cang-bai-se__0710722_pe727743_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/mackapaer-ma-kai-pa-xie-gui-chu-cang-bai-se__0909527_pe693582_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/mackapaer-ma-kai-pa-xie-gui-chu-cang-bai-se__0909523_pe637848_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/mackapaer-ma-kai-pa-xie-gui-chu-cang-bai-se__0612468_ph147157_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/mackapaer-ma-kai-pa-xie-gui-chu-cang-bai-se__1062521_pe850868_s5.jpg"],
    video: null,
    name: "MACKAPÄR 马凯帕",
    class: "鞋柜",
    scenario: "客厅",
    explain: "鞋柜/储藏，白色，80x35x102 厘米",
    deatail: "所有鞋子伸手可及且可隐藏在柜门后。如果你的鞋子很多，就把两个鞋柜叠放起来使用。MACKAPÄR 马凯帕 系列让门厅保持得井然有序，你每次匆忙出门时定会感谢它的存在。",
    price: 688.00
  },
  {
    id: 20,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/luddhagtorn-lu-de-ha-tong-yu-lian-fen-hong-se__1200211_pe904900_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/luddhagtorn-lu-de-ha-tong-yu-lian-fen-hong-se__1200212_pe904906_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/luddhagtorn-lu-de-ha-tong-yu-lian-fen-hong-se__1200210_pe904899_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/luddhagtorn-lu-de-ha-tong-yu-lian-fen-hong-se__1200209_pe904901_s5.jpg"],
    video: null,
    name: "LUDDHAGTORN 路德哈通",
    class: "浴帘",
    scenario: "浴室",
    explain: "浴帘，粉红色，180x200 厘米",
    deatail: "清新淡雅的浴帘可以为浴室营造简洁宜人的格调。这款浴帘有多种颜色可供选择，你可从中挑选心仪的一款，随心搭配配套的VÅGSJÖN 沃格逊 浴巾。",
    price: 19.90
  },
  {
    id: 21,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/mossjoen-mo-si-xue-en-ge-ban-bo-li-men-bi-gui-mei-hei-se__1239715_pe919026_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/mossjoen-mo-si-xue-en-ge-ban-bo-li-men-bi-gui-mei-hei-se__1248947_pe923313_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/mossjoen-mo-si-xue-en-ge-ban-bo-li-men-bi-gui-mei-hei-se__1248945_pe923312_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/mossjoen-mo-si-xue-en-ge-ban-bo-li-men-bi-gui-mei-hei-se__1257766_ph194652_s5.jpg"],
    video: null,
    name: "MOSSJÖN 摩斯雪恩",
    class: "壁柜",
    scenario: "浴室",
    explain: "搁板/玻璃门壁柜，煤黑色，36x18x102 厘米",
    deatail: "你希望浴室柜兼具陈列和隐藏的功能吗？MOSSJÖN 摩斯雪恩 壁柜应该会让你满意，它带有开放式搁板和槽纹玻璃柜门，让空间整洁有序之余，还能带来格调感。",
    price: 399.98
  },
  {
    id: 22,
    img: ["https://img.app.ikea.cn/cn/zh/images/products/lisabo-li-sa-bo-zhuo-zi-bai-zha-mu-tie-mian__0737105_pe740883_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/lisabo-li-sa-bo-zhuo-zi-bai-zha-mu-tie-mian__1221247_pe913674_s5.jpg", "https://img.app.ikea.cn/cn/zh/images/products/lisabo-li-sa-bo-zhuo-zi-bai-zha-mu-tie-mian__0837185_pe517621_s5.jpg"],
    video: ["https://video.app.ikea.cn/df43a410260871ee92716733a78e0102/2edeee1e4b1a4f6eb5e89387f112e837-e83141127c20c467f9ce3aa17e8dd7ee-ld.mp4?auth_key=1712329498-c798e1e690784b8c82913c99c4bb14b1-0-7a0b6006f7db535f40fdb3b81d0cc59d"],
    name: "LISABO 利萨伯",
    class: "桌子",
    scenario: "餐厅",
    explain: "桌子，白蜡木贴面，140x78 厘米",
    deatail: "这张桌子别具简约美观与温暖天然的木质外观。创新结构设计，格外结实牢固；只需轻松卡扣，就能将桌子组装好并投入使用。",
    price: 1200.00
  },
]

// 商品分类数据
export const product_class_data = [
  { id: 1, value: "沙发" },
  { id: 2, value: "衣柜" },
  { id: 3, value: "书桌" },
  { id: 4, value: "床架" },
  { id: 5, value: "椅子" },
  { id: 6, value: "橱柜" },
  { id: 7, value: "鞋柜" },
  { id: 8, value: "其他" },
];

// 商品场景数据
export const product_scenario_data = [
  { id: 1, value: "客厅" },
  { id: 2, value: "卧室" },
  { id: 3, value: "餐厅" },
  { id: 4, value: "书房" },
  { id: 5, value: "浴室" },
  { id: 6, value: "厨房" },
  { id: 7, value: "阳台" },
  { id: 8, value: "其他" },
];

// 商品排行榜
export const product_ranking_data = [
  {
    id: 1,
    class: "卧室家具",
    color: "#6936ff",
    products: get_product_data({id: [1, 3, 17]})
  },
  {
    id: 2,
    class: "客厅家具",
    color: "#009c49",
    products: get_product_data({id: [10, 9, 7]})
  },
  {
    id: 2,
    class: "其他家具",
    color: "#ff9a3f",
    products: get_product_data({id: [6, 12, 13]})
  },
];

// 数据获取
export function get_product_data(params = {}) {
  const data = product_data.filter(item => {
    if (params.keyWord) {
      let nameFilter = item.name.includes(params.keyWord);
      let classFilter = item.class.includes(params.keyWord);
      let scenarioFilter = item.scenario.includes(params.keyWord);
      return nameFilter || classFilter || scenarioFilter;
    }
    if (params.name) return item.name.includes(params.name);
    if (params.class) return item.class === params.class;
    if (params.id) return params.id.includes(item.id);
    return true;
  });
  return data;
}

export function get_product_class_data(params = {}) {
  return product_class_data.filter(item => {
    if (params.value) return item.value.includes(params.value);
    if (params.id) return params.id.includes(item.id);
    return true;
  });
}

export function get_product_scenario_data(params = {}) {
  return product_scenario_data.filter(item => {
    if (params.value) return params.value.includes(item.value);
    if (params.id) return params.id.includes(item.id);
    return true;
  });
}


